﻿#region Header
// ------------------------ Licence / Copyright ------------------------
// 
// Simple Service Administration Tool for WinNT based systems.
// Copyright © 2010 - Silvan Gehrig
// 
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
// 
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
// 
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
// 
// Author:
//  Silvan Gehrig
//
// ---------------------------------------------------------------------
#endregion

#region Usings

using System;
using System.Runtime.Serialization;

#endregion

namespace SSATool.BL.DM
{
    /// <summary>
    /// Specifies the service status.
    /// </summary>
    public enum ServiceStatus
    {
        #region Properties
        //--------------------------------------------------------------------
        // Properties
        //--------------------------------------------------------------------

        /// <summary>
        /// The state of the service is unknown. This corresponds to the
        /// default state.
        /// </summary>
        Unknown = 0,

        /// <summary>
        /// The service is not running. 
        /// </summary>
        Stopped = 1,

        /// <summary>
        /// The service is starting.
        /// </summary>
        StartPending = 2,

        /// <summary>
        /// The service is stopping.
        /// </summary>
        StopPending = 3,

        /// <summary>
        /// The service is running (and also started).
        /// </summary>
        Running = 4,

        /// <summary>
        /// The service continue is pending.
        /// </summary>
        ContinuePending = 5,

        /// <summary>
        /// The service pause is pending.
        /// </summary>
        PausePending = 6,

        /// <summary>
        /// The service is paused.
        /// </summary>
        Paused = 7

        #endregion
    }
}
